Optimal. Leaf size=88 \[ -\frac {x^2 \sqrt {-1+a x}}{4 a \sqrt {1-a x}}-\frac {x \sqrt {1-a^2 x^2} \cosh ^{-1}(a x)}{2 a^2}+\frac {\sqrt {-1+a x} \cosh ^{-1}(a x)^2}{4 a^3 \sqrt {1-a x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {5938, 5892, 30}
\begin {gather*} \frac {\sqrt {a x-1} \cosh ^{-1}(a x)^2}{4 a^3 \sqrt {1-a x}}-\frac {x \sqrt {1-a^2 x^2} \cosh ^{-1}(a x)}{2 a^2}-\frac {x^2 \sqrt {a x-1}}{4 a \sqrt {1-a x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 5892
Rule 5938
Rubi steps
\begin {align*} \int \frac {x^2 \cosh ^{-1}(a x)}{\sqrt {1-a^2 x^2}} \, dx &=\frac {\left (\sqrt {-1+a x} \sqrt {1+a x}\right ) \int \frac {x^2 \cosh ^{-1}(a x)}{\sqrt {-1+a x} \sqrt {1+a x}} \, dx}{\sqrt {1-a^2 x^2}}\\ &=-\frac {x (1-a x) (1+a x) \cosh ^{-1}(a x)}{2 a^2 \sqrt {1-a^2 x^2}}+\frac {\left (\sqrt {-1+a x} \sqrt {1+a x}\right ) \int \frac {\cosh ^{-1}(a x)}{\sqrt {-1+a x} \sqrt {1+a x}} \, dx}{2 a^2 \sqrt {1-a^2 x^2}}-\frac {\left (\sqrt {-1+a x} \sqrt {1+a x}\right ) \int x \, dx}{2 a \sqrt {1-a^2 x^2}}\\ &=-\frac {x^2 \sqrt {-1+a x} \sqrt {1+a x}}{4 a \sqrt {1-a^2 x^2}}-\frac {x (1-a x) (1+a x) \cosh ^{-1}(a x)}{2 a^2 \sqrt {1-a^2 x^2}}+\frac {\sqrt {-1+a x} \sqrt {1+a x} \cosh ^{-1}(a x)^2}{4 a^3 \sqrt {1-a^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 75, normalized size = 0.85 \begin {gather*} -\frac {\sqrt {-((-1+a x) (1+a x))} \left (-\cosh \left (2 \cosh ^{-1}(a x)\right )+2 \cosh ^{-1}(a x) \left (\cosh ^{-1}(a x)+\sinh \left (2 \cosh ^{-1}(a x)\right )\right )\right )}{8 a^3 \sqrt {\frac {-1+a x}{1+a x}} (1+a x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(222\) vs.
\(2(72)=144\).
time = 5.95, size = 223, normalized size = 2.53
method | result | size |
default | \(-\frac {\sqrt {-a^{2} x^{2}+1}\, \sqrt {a x -1}\, \sqrt {a x +1}\, \mathrm {arccosh}\left (a x \right )^{2}}{4 a^{3} \left (a^{2} x^{2}-1\right )}-\frac {\sqrt {-a^{2} x^{2}+1}\, \left (2 a^{3} x^{3}-2 a x +2 \sqrt {a x +1}\, \sqrt {a x -1}\, a^{2} x^{2}-\sqrt {a x -1}\, \sqrt {a x +1}\right ) \left (-1+2 \,\mathrm {arccosh}\left (a x \right )\right )}{16 a^{3} \left (a^{2} x^{2}-1\right )}-\frac {\sqrt {-a^{2} x^{2}+1}\, \left (2 a^{3} x^{3}-2 a x -2 \sqrt {a x +1}\, \sqrt {a x -1}\, a^{2} x^{2}+\sqrt {a x -1}\, \sqrt {a x +1}\right ) \left (1+2 \,\mathrm {arccosh}\left (a x \right )\right )}{16 a^{3} \left (a^{2} x^{2}-1\right )}\) | \(223\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2} \operatorname {acosh}{\left (a x \right )}}{\sqrt {- \left (a x - 1\right ) \left (a x + 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2\,\mathrm {acosh}\left (a\,x\right )}{\sqrt {1-a^2\,x^2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________